package com.adcc.swingui.demo.toolbar.type;

import java.awt.Container;

import javax.swing.AbstractButton;
import javax.swing.ImageIcon;
import javax.swing.JComponent;

import com.adcc.swingui.base.DefaultToolBar;

/**
 * 最简单，无状态工具
 * @author charlie
 *
 */
public class ToolBut1 extends DefaultToolBar {

	public ToolBut1(Container container) {
		super(container);
	}

	@Override
	protected JComponent build() {
		//创建控件
		final AbstractButton but = createButton(new ImageIcon("res/images/plane_new.png"));
		but.setToolTipText("xxx");
		//国际化
		return but;
	}

	@Override
	protected void addMouseListener() {
		//这里填写对应响应事件
	}

	@Override
	protected void i18n() {
		// TODO Auto-generated method stub
		
	}

}
